/*
 * MODULE  NAME  :
 * PROGRAM NAME  : constants.h
 * AUTHOR        : hotmocha(hotmocha@126.com)
 * CREATE  DATE  : 2015-10-20 14:57:50
 * PROGRAM DESC  :
 *
 * HISTORY       :
 *
 */
#ifndef _H_CONSTANTS_H_
#define _H_CONSTANTS_H_

#define FILEPATHMAXLEN	256
#define MAXCONNECTING	100
#define IPV4LEN		20
#define MSGMAXLEN	2048
#define EPOLL_MAX_WAITEVENTS_NUM	512
#define MAXIOBUFLEN	4096
#define	MSGTYPELEN	4	
#define	HEADERLEN	8	/* 4:message_type 4:message_body_len */
#define MAXMESSAGELEN	4096
#define MAXMESSAGENUM	20

#define MEMBER_CMD_INIT		0
#define MEMBER_CMD_ADD		1
#define MEMBER_CMD_DELETE	2

#define YES	1
#define NO	0

#endif
